import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hwVehicle/hwvehiclegaslogdaily/` + url, ...arg)

/**
 * 车辆每日油耗记录Api接口管理器
 *
 * @author lizhiwen
 * @date  2024/02/18 15:50
 **/
export default {
	// 获取车辆每日油耗记录分页
	hwVehicleGasLogDailyPage(data) {
		return request('page', data, 'get')
	},
    // 获取车辆每日油耗记录列表
    hwVehicleGasLogDailyList(data) {
		return request('list', data, 'get')
	},
	// 提交车辆每日油耗记录表单 edit为true时为编辑，默认为新增
	hwVehicleGasLogDailySubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除车辆每日油耗记录
	hwVehicleGasLogDailyDelete(data) {
		return request('delete', data)
	},
	hwVehicleGasLogDailyCompare(data) {
		return request('compare', data, 'post')
	},
	hwVehicleGasLogDailyOverview(data) {
		return request('overview', data, 'post')
	},hwVehicleGasLogDailyRank(data) {
		return request('rank', data, 'post')
	},
	// 获取车辆每日油耗记录详情
	hwVehicleGasLogDailyDetail(data) {
		return request('detail', data, 'get')
	}
}
